import 'package:flutter/material.dart';

/// @Author wywinstonwy
/// @Date 2022/6/7 8:59 上午
/// @Description: 

class WyAppBarPage extends StatefulWidget {
  const WyAppBarPage({Key? key}) : super(key: key);

  @override
  State<WyAppBarPage> createState() => _WyAppBarPageState();
}

class _WyAppBarPageState extends State<WyAppBarPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:getappbar(),
    );
  }
  AppBar getappbar(){
    return AppBar(
      title: const Text("appbar",style:  TextStyle(color: Colors.white,fontSize: 18,fontWeight:FontWeight.bold ),),
      actions: [
        IconButton(onPressed: (){}, icon: Icon(Icons.print)),

        PopupMenuButton(itemBuilder: (BuildContext context)=><PopupMenuItem<String>>[
          PopupMenuItem(child: Text("分享到朋友圈")),
          PopupMenuItem(child: Text("分享到朋友")),
          PopupMenuItem(child: Text("分享到QQ")),
        ])
      ],
    );
  }
}
